package com.ruoyi.fk.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目管理对象 question
 * 
 * @author fengkun
 * @date 2025-08-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目ID */
    private Integer id;

    /** 题目内容 */
    @Excel(name = "题目内容")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String url;

    /** 所属课程 */
    @Excel(name = "所属课程")
    private Integer courseId;

    /** 所属科目ID */
    @Excel(name = "所属科目ID")
    private Integer subjectId;

    /** 所属章节 */
    @Excel(name = "所属章节")
    private Integer chapterId;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private String type;

    /** 题目难度 */
    @Excel(name = "题目难度")
    private Integer difficulty;

    /** 状态 */
    @Excel(name = "状态")
    private Integer del;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String chapterName;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;



    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }

    public void setCourseId(Integer courseId)
    {
        this.courseId = courseId;
    }

    public Integer getCourseId()
    {
        return courseId;
    }

    public void setSubjectId(Integer subjectId)
    {
        this.subjectId = subjectId;
    }

    public Integer getSubjectId()
    {
        return subjectId;
    }

    public void setChapterId(Integer chapterId)
    {
        this.chapterId = chapterId;
    }

    public Integer getChapterId()
    {
        return chapterId;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    public void setDifficulty(Integer difficulty)
    {
        this.difficulty = difficulty;
    }

    public Integer getDifficulty()
    {
        return difficulty;
    }

    public void setDel(Integer del)
    {
        this.del = del;
    }

    public Integer getDel()
    {
        return del;
    }

    public void setCourseName(String courseName)
    {
        this.courseName = courseName;
    }

    public String getCourseName()
    {
        return courseName;
    }

    public void setChapterName(String chapterName)
    {
        this.chapterName = chapterName;
    }

    public String getChapterName()
    {
        return chapterName;
    }

    public void setSubjectName(String subjectName)
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName()
    {
        return subjectName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("url", getUrl())
            .append("courseId", getCourseId())
            .append("subjectId", getSubjectId())
            .append("chapterId", getChapterId())
            .append("type", getType())
            .append("difficulty", getDifficulty())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .append("courseName", getCourseName())
            .append("chapterName", getChapterName())
            .append("subjectName", getSubjectName())
            .toString();
    }
}
